package com.e_manager.soft.emanager;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.boot.web.support.SpringBootServletInitializer;
import org.springframework.context.annotation.ImportResource;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

import java.util.TimeZone;

@ServletComponentScan
@SpringBootApplication
@EnableSwagger2
@EnableTransactionManagement
@MapperScan("com.e_manager.soft.emanager.idao")
@ImportResource(locations={"classpath:spring-rabbitmq.xml"})
public class EmanagerApplication extends SpringBootServletInitializer {

	public static void main(String[] args) {
		/**
		 * 设置时区为UTC+8
		 */
		TimeZone.setDefault(TimeZone.getTimeZone("Asia/Shanghai"));
		SpringApplication.run(EmanagerApplication.class, args);
//		System.out.println("springBoot (v2.0.0.RELEASE)");
	}
}
